import request from "../request"


export default {
	// 主页右侧
	
// 设备告警
findDeviceOrderPage(params) {
	return request( '/daily/hiddenDangerOrder/findDeviceOrderPage', 'GET', params)
  },
// 设施故障
findFacilityOrderPage(params) {
	return request( '/daily/hiddenDangerOrder/findFacilityOrderPage', 'GET', params)
  },
// 室内路线数
getInterior(params) {
	return request( '/daily/total/task/todo', 'GET', params)
  },
// 室外路线数
getOutdoor(params) {
	return request( '/daily/total/task/doneV2', 'GET', params)
  },
//  日常维保
getMaintenance(params) {
	return request( '/daily/repairSheet/page1', 'GET', params)
  },
// 故障维修
unAssignWorkOrder(params) {
	return request( '/daily/hiddenDangerWbOrder/unAssignWorkOrder', 'GET', params)
  },
// 隐患数量
hiddenDangerStatistics(params) {
	return request( '/daily/hiddenDangerOrder/getHiddenDangerStatistics', 'GET', params)
  },



  // 本公司：根据工单id查询工单审核详情
  getAuditDetails(params) {
	return request( '/daily/hiddenDangerOrder/findAuditDetails', 'GET', params)
  },
  // 本公司：查询工单信息(现场处理工单)
  getSiteOrderDetails(params) {
	return request( '/daily/hiddenDangerOrder/findOrderInfo', 'GET', params)
  },
  // 配置日常维保工单
  updateRepairSheet(data) {
	return request( '/daily/repairSheet/update', 'post', data)
  },
  //  添加日常维保记录
  addRepairRecord(data) {
	return request( '/daily/repairRecord/add', 'post', data)
  },
//  分页查询日常维保记录
getRepairRecord(params) {
	return request( "/daily/repairRecord/findList", 'GET', params)
  },
// 根据 id 查询巡检路线
getInspectLineDetail(id) {
	return request( "/daily/inspectionLine/getDetailById?inspectionLineId=" + id, 'GET', id)
  },

}
	


